package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: TaskTagSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-18
 * @Version: 1.0
 * Table: pear_task_tag
 * Comment:
 * 任务标签表
 */
public class TaskTagSuperController extends BaseController {
    @Autowired
    TaskTagService service;

    public Integer addTaskTag(TaskTagAddRequest request) throws Exception {
        return service.addTaskTag(request);
    }

    public Integer updateTaskTag(TaskTagUpdateRequest request) throws Exception {
        return service.updateTaskTag(request);
    }

    public Integer deleteTaskTag(TaskTagDeleteRequest request) throws Exception {
        return service.deleteTaskTag(request);
    }

    public TaskTagQueryResponse queryTaskTag(TaskTagQueryRequest request) throws Exception {
        return service.queryTaskTag(request);
    }

    public List<TaskTagQueryResponse> listTaskTag(TaskTagQueryRequest request) throws Exception {
        return service.listTaskTag(request);
    }

    public Integer countTaskTag(TaskTagQueryRequest request) throws Exception {
        return service.countTaskTag(request);
    }

    public BaseStatResponse statTaskTag(TaskTagQueryRequest request) throws Exception {
        return service.statTaskTag(request);
    }

    public List<TaskTagForTagsResponse> tags(TaskTagForTagsRequest request) throws Exception {
        return service.tags(request);
    }

    public Integer countForTags(TaskTagForTagsRequest request) throws Exception {
        return service.countForTags(request);
    }

    public BaseStatResponse statForTags(TaskTagForTagsRequest request) throws Exception {
        return service.statForTags(request);
    }

    public String exportExcelTags(TaskTagForTagsRequest request) throws Exception {
        clearPageInfo(request);
        
        List<TaskTagForTagsResponse> list = service.tags(request);
        return super.exportExcel(request, list);
    }
    

}
